// Realistic Unit Modification Assets Dialog 
// v. Beta

// IDD and IDC ------------------------

RUM_Arty_IDD = 1000;
RUM_BttnExit_IDC = 1001;
RUM_BttnArty_IDC = 1002;
RUM_ListArty_IDC = 1003;
RUM_TypeArty_IDC = 1004;
RUM_DispArty_IDC = 1005;
RUM_NumRArty_IDC = 1006;
RUM_DistArty_IDC = 1007;
RUM_DegrArty_IDC = 1008;
RUM_TypRArty_IDC = 1009;
RUM_TimeArty_IDC = 1010;
RUM_UpDnArty_IDC = 1011;
RUM_MTarArty_IDC = 1012;
RUM_CTarArty_IDC = 1013;
RUM_ToTArty_IDC = 1014;
RUM_BttnArtyMap_IDC = 1015;

// Start ------------------------------

// Init -------------------------------
_dialog = createDialog "RUM_Arty";
if !(_dialog) exitWith {hint "createDialog failed"};

RUM_COM = _this select 0;
[_dialog] spawn RUM_TypRUpdate;
[_dialog] spawn RUM_NumRTimeUpdate;
[_dialog] spawn RUM_ScootUpdate;

call RUM_FillListArty;

lbSetCurSel [RUM_ListArty_IDC, RUM_Arty_battid];
sleep 0.2;

{lbAdd [RUM_TypeArty_IDC,_x]} foreach ["AIMING FIRE","FIRE FOR EFFECT","IMMEDIATE SUPPRESSION","SUPPRESS"];
lbSetCurSel [RUM_TypeArty_IDC, RUM_Arty_typeid];

{lbAdd [RUM_DispArty_IDC,_x]} foreach ["NONE","LOW","MEDIUM","HIGH"];
lbSetCurSel [RUM_DispArty_IDC, RUM_Arty_dispid];

{lbAdd [RUM_MTarArty_IDC,_x]} foreach RUM_Arty_TargetingTypes;
lbSetCurSel [RUM_MTarArty_IDC, RUM_Arty_mtarid2];

{lbAdd [RUM_CTarArty_IDC,_x]} foreach ["FWR","DELAY"];
lbSetCurSel [RUM_CTarArty_IDC, RUM_Arty_ctarid];

lbAdd [RUM_NumRArty_IDC,"N/A"];
lbSetCurSel [RUM_NumRArty_IDC, RUM_Arty_numRid];

lbAdd [RUM_TypRArty_IDC,"N/A"];
lbSetCurSel [RUM_TypRArty_IDC, RUM_Arty_typRid];

lbAdd [RUM_TimeArty_IDC,"N/A"];
lbSetCurSel [RUM_TimeArty_IDC, RUM_Arty_timeid];

ctrlSetText [RUM_DistArty_IDC,RUM_Arty_disstg];
ctrlSetText [RUM_DegrArty_IDC,RUM_Arty_dirstg];
ctrlSetText [RUM_UpDnArty_IDC,RUM_Arty_updnstg];
ctrlSetText [RUM_ToTArty_IDC,RUM_Arty_totstg];

if(true)exitwith{};